Templates
Managing Templates
Templates are stored in /templates folder. They have .tpl extension but they are normal HTML files you can edit from your favorite editor (like FrontPage, Macromedia Dreamweaver or even EditPlus). Make sure not to rename or remove special tags {} (like {ARTILCE_ID}, {ARTICLE_TITLE, etc.). Every respective template matches specific action or event. Pages usually consist of several templates (i.e. show_breadcrumbs.tpl, show_all_articles.tpl, show_votes.tpl, etc.)
Templates can also be easily controlled in Administration area, where you can amend every respective template and save your changes without having to use any third party HTML editor.
| Template name | Description |
| article_Full.tpl | Full article page display, except for the header |
| article_Short.tpl | Short article view, for main page and category pages |
| article_tools_email_print.tpl | Email to a friend, print version, and PDF version stripe for articles |
| article_tools_comment_link.tpl | In case commenting article is allowed, this is apended to article_tools_email_print.tpl |
| article_breadcrumbs.tpl | Breadcrumb display |
| article_comments_page.tpl | Central template for showing comments |
| article_comment.tpl | Individual comment |
| article_comment_add.tpl | Display message after posting a comment |
| show_votes.tpl | Display properties for voting section on full article page. |
| show_related_links.tpl | "Show related links" section |
| index.tpl | |
| calendar.tpl | Calendar template |
| box_featuredAuthor.tpl | "Featured Author" box template |
| box_mostCommented.tpl | "Most Commented" box template |
| box_mostPopular.tpl | "Most Popular" box template |
| box_newsletter.tpl | Newsletter form template |
| box_search.tpl | Search form (box) template |
| box_sections.tpl | Sections (categories and subcategories) template |
| box_siteTools.tpl | Site tools template |
| box_syndication.tpl | Syndication (RSS feeds) box template |
| box_poll.tpl | Poll form template |
| box_poll_answer.tpl | Poll answers template |
| category_Main.tpl | Main category template, you can have one for each respective category |
| category_no_articles.tpl | No article in category message |
| ctg_test.tpl | Example of custom category template - not used by system |
| ctgheader_test.tpl | Example of custom header template - not used by system |
| category_archive_link.tpl | Link to archive in category |
| show_pager.tpl | Pagination on category pages |
| show_rss.tpl | Rss link in category |
| show_sort.tpl | Sort links and ASC/DESC direction |
| footer.tpl | Header file |
| header.tpl | Footer file |
| framework.tpl | Holder for all pages |
| page_archive.tpl | Main archive page |
| sections_category_menu.tpl | Category links |
| sections_subcategory_menu.tpl | Subcategory links |
| show_category_head_links.tpl | Last articles links in categoey |
| show_category_headers.tpl | Header for category last articles |
| search_results.tpl | Search result main form |
| search_result_short.tpl | Short body view with search pattern |
| show_author_info.tpl | Author/user info page |
| users_sign_up.tpl | Users sign-up page (registration) |
| poll_result_question.tpl | Poll question template |
| poll_result_answer.tpl | Poll answers template |
| polls_all.tpl | Show all polls |
| close_site.tpl | Message when the site is closed |
List of tags used in templates
| {TAG} | Used In (templates) | Used For (short description of tag) |
| {ARTICLE_TOOLS} |
|
Shows email to a friend, print version and comment link template |
| {ARTICLE_DATE} |
|
Displays date when current article is published |
| {ARTICLE_AUTHOR} |
|
Displays author for current article |
| {ARTICLE_IMAGE} |
|
Displays uploaded image for current article |
| {ARTICLE_BODY} |
|
Displays full body of uploaded article |
| {ARTICLE_TIMES_READ} |
|
Displays how many times current article has been read |
| {ARTICLE_RELATED_NEWS} |
|
Shows related news template |
| {ARTICLE_VOTE} |
|
Shows voting form template |
| {ARTICLE_TOOL_COMMENT} |
|
Shows comments link template |
| {ARTICLE_COMMENTS} |
|
Shows article comments template |
| {ARTICLE_TITLE} |
|
Displays article title |
| {ARTICLE_CREATED} |
|
Displays date when article is created in "related news" section |
| {ARTICLES} |
|
Displays list of articles posted by current author |
| {ARTICLE_SHORT} |
|
Shows short article view template on category page |
| {AUTHOR} |
|
Displays article author |
| {BOX_SEARCH} |
|
Shows search form (box) template |
| {BOX_SECTIONS} |
|
Shows sections (categories and subcategories) template |
| {BOX_SYNDICATION} |
|
Shows syndication (RSS feeds) box template |
| {BOX_NEWSLETTER} |
|
Shows newsletter form template |
| {BOX_POLL} |
|
Shows poll form template |
| {BOX_CATEGORY_HEADERS} |
|
Shows "More Top News" box template |
| {BOX_MOST_POPULAR} |
|
Shows "Most Popular" box template |
| {BOX_MOST_COMMENTED} |
|
Shows "Most Commented" box template |
| {BOX_FEATURED_AUTHOR} |
|
Shows "Featured Author" box template |
| {BODY} |
|
Displays short body of uploaded article |
| {BIO} |
|
Displays short biography for current author |
| {BREADCRUMBS} |
|
Shows breadcrumbs template |
| {CATEGORY} |
|
Displays list of all categories/subcategories |
| {CAPTION_TITLE} |
|
Displays article title |
| {CATEGORY_MENU} |
|
Shows category menu template |
| {CATEGORY_NAME} |
|
Displays category/subcategory name |
| {CATEGORY_LINK_RSS} |
|
Shows rss drop-down menu template in category |
| {CALENDAR} |
|
Shows calendar (archive) template |
| {CALENDAR_BODY} |
|
Displays dates |
| {CREATED} |
|
Displays date when article is created |
| {CLOSING_REASON} |
|
Displays reason for closing site message |
| {EMAIL} |
|
Displays author email |
| {FEATURED_NEWS} |
|
Shows AJAX headline rotation template on main page |
| {IMAGE} |
|
Displays uploaded image |
| {LATEST_NEWS} |
|
Shows short article view template on main page |
| {LOGIN_INFO} |
|
Displays "Log in" or "Log out" link and info whether the user is logged in |
| {LINKS} |
|
Displays individual article links for each respective category in "More Top News" section |
| {LNC_0} - {LNC_6} |
|
Displays days of the week |
| {MOST_COMMENT_ARTICLES} |
|
Displays list of articles with most comments |
| {MOST_READING_ARTICLES} |
|
Displays list of most popular articles |
| {MONTH} |
|
Displays current month |
| {NAME} |
|
Displays author name |
| {NUM_POSTED} |
|
Displays how many comments has been posted for current article |
| {PAGINATION} |
|
Shows pagination template in category |
| {POLLS} |
|
Displays list of all polls |
| {POLL_NAME} |
|
Displays current poll name |
| {POLL_QUESTION} |
|
Displays current poll question |
| {POLL_ANSWERS} |
|
Shows poll answer form template |
| {POLL_ANSWER} |
|
Displays list of poll answers |
| {PWP_CONTACT_LINK} |
|
Displays "Contact us" link |
| {REVIEW} |
|
Displays rating for current article |
| {SEARCH_BODY} |
|
Shows short article view template in search results |
| {SITEMAP_LINK} |
|
Displays "Sitemap" link |
| {SHOW_COMMENTS} |
|
Displays list of existing comments |
| {SHOW_AUTHOR_LINK} |
|
Displays link to author page |
| {SHOW_PAGER} |
|
Shows pagination |
| {SHORT_BODY} |
|
Displays short article view |
| {SHOW_TOTAL} |
|
Displays total amount of articles in category/subcategory |
| {SHOW_DISPLAYING} |
|
Displays current number of articles on page |
| {SHOW_PAGES} |
|
Displays total amount of pages |
| {SUB_CATEGORY_MENU} |
|
Shows subcategory menu template |
| {SORT_BY} |
|
Shows sort links and ASC/DESC direction template |
| {TITLE} |
|
Displays article title in breadcrumb template |
| {TOTAL} |
|
Displays total number of votes |
| {USERNAME} |
|
Displays author username |
| {VOTE_NUMBER} |
|
Displays total number of votes for current article |
| {WWW} |
|
Displays authors website link |
| {YEAR} |
|
Displays current year |
Template structure flowcharts